package it.test.service;

import it.test.commons.BasePojo;
import it.test.commons.DTO;
import it.test.dao.BaseDAO;

import java.io.Serializable;
import java.util.List;

public interface BaseService<T extends BasePojo, ID extends Serializable> {

	public abstract void setDao(BaseDAO<T, ID> dao);
	
	public List<T> findAll();
	
	public DTO<T> find(ID id);
	
	public void save(DTO<T> dto);
	
	public void saveOrUpdate(DTO<T> dto);
	
	public void delete(DTO<T> dto);
	
	
}